package com.pronosticnews.client.services;

import java.util.Collection;
import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.pronosticnews.shared.model.UserDto;

import fr.ysa.services.ServiceException;
import fr.ysa.services.config.ConfigRequetesDto;

@RemoteServiceRelativePath("userService.rpc")
public interface UserService extends RemoteService {

	Integer compter(ConfigRequetesDto config) throws ServiceException;

	UserDto modifier(UserDto obj) throws ServiceException;

	Collection<UserDto> sauvegarder(Collection<UserDto> entities) throws ServiceException;

	UserDto sauvegarder(UserDto obj) throws ServiceException;

	void supprimer(Collection<UserDto> entities) throws ServiceException;

	void supprimer(UserDto obj) throws ServiceException;

	List<UserDto> trouver(ConfigRequetesDto config) throws ServiceException;

	UserDto getConnected();

}
